from mcp.server.fastmcp import FastMCP

# 初始化 MCP 服务器
mcp = FastMCP("HelloMCP")

# 定义 MCP 工具
@mcp.tool(name="hello")
async def hello() -> str:
    return "Hello MCP!"

if __name__ == "__main__":
    print("Starting server...")
    mcp.run(transport='stdio')